{% extends 'base.html' %}
{% block title %}
    {# 标题设置 #}
    详情列表
{% endblock %}
{% block neirong %}
    {# 内容设置 #}
    <style>
        td{height: 40px; line-height: 40px;}
        .xian td{border-bottom: 2px solid #999999}
        .neirong td{border-bottom: 1px solid #cccccc;}
    </style>
    <table>
        <tr>
            <td style="width: 50px;">ID</td>
            <td style="width: 220px">用户名|姓名</td>
            <td style="width: 180px">密码</td>
            <td style="width: 50px">年龄</td>
            <td style="width: 150px">邮箱</td>
            <td style="width: 200px">添加时间</td>
            <td style="width: 150px;">操作</td>
        </tr>
        <tr class="xian" style="border-bottom: 2px solid #999999"><td colspan="7" style="height: 0px; overflow: hidden;"></td> </tr>
       {% for member in userlist %}
        <tr class="neirong">
            <td>{{ member.id }}</td>
            <td>{{ member.username }}&nbsp;|&nbsp;{{ member.xingming }}</td>
            <td>{{ member.password }}</td>
            <td>{{ member.age }}</td>
            <td>{{ member.email }}</td>
            <td>{{ member.addtime }}</td>
            <td><a href="{% url 'users:edit' member.id %}">修改</a> &nbsp;|&nbsp;<a href="{% url 'users:del' member.id %}">删除</a></td>
        </tr>
        {% endfor %}
    </table>
{% endblock %}